package com.link.base.base.alert.service;

import javax.annotation.Resource;

import com.link.base.base.alert.dao.mybatis.mapper.AlertParamMapper;
import com.link.base.base.alert.model.AlertParam;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 预警模块-消息匹配规则- 
 *
 * @author 宁蓝昊
 * @date 2019/09/28 16:11
 */
@Service
public class AlertParamServiceImpl extends BasicServiceImpl<AlertParam> implements AlertParamService {

    @Resource
    private AlertParamMapper alertParamMapper;
    
    @Override
    public BasicMapper<AlertParam> getBasicMapper() {
        return alertParamMapper;
    }

    @Override
    public void deleteByAlertId(Long alertId) throws Exception {
        alertParamMapper.deleteByAlertId(alertId);
    }
}

